package com.kgc.skProvider.controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.collection.remote.CwOtherIncomeRefundRemote;
import com.kgc.skProvider.service.CwOtherIncomeRefundService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.Map;

@Controller
public class CwOtherIncomeRefundController implements CwOtherIncomeRefundRemote {

    private Logger logger = LoggerFactory.getLogger(CwOtherIncomeRefundController.class);

    @Autowired
    private CwOtherIncomeRefundService cwOtherIncomeRefundService;


    @Override
    public ResponseMsg selectCwOtherIncomeRefundByPage(Map<String, Object> map) {
        logger.info("CwOtherIncomeRefundController selectCwOtherIncomeRefundByPage params={}", map.toString());
        ResponseMsg responseMsg = cwOtherIncomeRefundService.selectCwOtherIncomeRefundByPage(map);
        logger.debug("CwOtherIncomeRefundController CwOtherIncomeRefundController responseMsg={}", responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg selectCwOtherIncomeRefundByCode(Map<String, Object> map) {
        logger.info("CwOtherIncomeRefundController selectCwOtherIncomeRefundByCode params={}", map.toString());
        ResponseMsg responseMsg =cwOtherIncomeRefundService.selectCwOtherIncomeRefundByCode(map);
        logger.debug("CwOtherIncomeRefundController selectCwOtherIncomeRefundByCode responseMsg={}", responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg updateCwOtherIncomeRefund(Map<String, Object> map) {
        logger.info("CwOtherIncomeRefundController updateCwOtherIncomeRefund params={}", map.toString());
        ResponseMsg responseMsg = cwOtherIncomeRefundService.updateCwOtherIncomeRefund(map);
        logger.debug("CwOtherIncomeRefundController updateCwOtherIncomeRefund responseMsg={}", responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg insertCwOtherIncomeRefund(Map<String, Object> map) {
        logger.info("CwOtherIncomeRefundController insertCwOtherIncomeRefund params={}", map.toString());
        ResponseMsg responseMsg = cwOtherIncomeRefundService.insertCwOtherIncomeRefund(map);
        logger.debug("CwOtherIncomeRefundController insertCwOtherIncomeRefund responseMsg={} ", responseMsg);
        return responseMsg;

    }

    @Override
    public ResponseMsg deleteCwOtherIncomeRefund(Map<String, Object> map) {
        logger.info("CwOtherIncomeRefundController deleteCwOtherIncomeRefund params={}", map.toString());
        ResponseMsg responseMsg=cwOtherIncomeRefundService.deleteCwOtherIncomeRefund(map);
        logger.debug("CwOtherIncomeRefundController deleteCwOtherIncomeRefund responseMsg={} ", responseMsg);
        return responseMsg;
    }

    @Override
    public ResponseMsg checkCwOtherIncomeRefund(Map<String, Object> map) {
        logger.info("CwOtherIncomeRefundController checkCwOtherIncomeRefund params={}", map.toString());
        ResponseMsg responseMsg=cwOtherIncomeRefundService.checkCwOtherIncomeRefund(map);
        logger.debug("CwOtherIncomeRefundController checkCwOtherIncomeRefund responseMsg={} ",responseMsg);
        return responseMsg;
    }
}
